
package com.excesys.exsecs.energy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.excesys.exsecs.energy.entity.PowerHourFlow;
import com.excesys.exsecs.energy.mapper.PowerHourFlowMapper;
import com.excesys.exsecs.energy.service.PowerHourFlowService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 能耗支路总电表按小时流水记录
 *
 * @author zhangtailong
 * @date 2023-12-26 11:01:55
 */
@Service
public class PowerHourFlowServiceImpl extends ServiceImpl<PowerHourFlowMapper, PowerHourFlow> implements PowerHourFlowService {

    @Override
    public Float sumPowerList(String timeValue) {
        return this.baseMapper.sumPowerList(timeValue);
    }

    @Override
    public List<Map<String, Object>> powerAnalyse(String startTimeValue, String endTimeValue) {
        return this.baseMapper.powerAnalyse(startTimeValue, endTimeValue, null);
    }

    @Override
    public List<Map<String, Object>> powerGroupAreaByDate(String timeValue, String areaName, String order) {
        return this.baseMapper.powerGroupAreaByDate(timeValue, areaName, order);
    }

    @Override
    public List<Map<String, Object>> powerGroupBranchingByDate(String timeValue, String branchName, String order) {
        return this.baseMapper.powerGroupBranchingByDate(timeValue, branchName, order);
    }

    @Override
    public Float powerSumByWhere(String timeValue) {
        return this.baseMapper.powerSumByWhere(timeValue);
    }

    @Override
    public Float powerByWhere(Map<String, Object> params) {
        return this.baseMapper.powerByWhere(params);
    }

    @Override
    public PowerHourFlow getCostOne(String unitNo) {
        return this.baseMapper.getCostOne(unitNo);
    }


}
